package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 客户全景-资产-账户概述
 */
@ApiModel(description = "客户全景-资产-账户概述")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class AccountOverview   {
  @JsonProperty("assetInfo")
  @Valid
  private List<KeyValueDetail> assetInfo = null;

  @JsonProperty("otherInfo")
  @Valid
  private List<KeyValueAndTip> otherInfo = null;

  public AccountOverview assetInfo(List<KeyValueDetail> assetInfo) {
    this.assetInfo = assetInfo;
    return this;
  }

  public AccountOverview addAssetInfoItem(KeyValueDetail assetInfoItem) {
    if (this.assetInfo == null) {
      this.assetInfo = new ArrayList<KeyValueDetail>();
    }
    this.assetInfo.add(assetInfoItem);
    return this;
  }

  /**
   * 资产信息
   * @return assetInfo
  **/
  @ApiModelProperty(value = "资产信息")

  @Valid

  public List<KeyValueDetail> getAssetInfo() {
    return assetInfo;
  }

  public void setAssetInfo(List<KeyValueDetail> assetInfo) {
    this.assetInfo = assetInfo;
  }

  public AccountOverview otherInfo(List<KeyValueAndTip> otherInfo) {
    this.otherInfo = otherInfo;
    return this;
  }

  public AccountOverview addOtherInfoItem(KeyValueAndTip otherInfoItem) {
    if (this.otherInfo == null) {
      this.otherInfo = new ArrayList<KeyValueAndTip>();
    }
    this.otherInfo.add(otherInfoItem);
    return this;
  }

  /**
   * 其他信息，如当月盈亏率等
   * @return otherInfo
  **/
  @ApiModelProperty(value = "其他信息，如当月盈亏率等")

  @Valid

  public List<KeyValueAndTip> getOtherInfo() {
    return otherInfo;
  }

  public void setOtherInfo(List<KeyValueAndTip> otherInfo) {
    this.otherInfo = otherInfo;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AccountOverview accountOverview = (AccountOverview) o;
    return Objects.equals(this.assetInfo, accountOverview.assetInfo) &&
        Objects.equals(this.otherInfo, accountOverview.otherInfo);
  }

  @Override
  public int hashCode() {
    return Objects.hash(assetInfo, otherInfo);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class AccountOverview {\n");
    
    sb.append("    assetInfo: ").append(toIndentedString(assetInfo)).append("\n");
    sb.append("    otherInfo: ").append(toIndentedString(otherInfo)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

